package mk.basic;

public class TimeTime {

	public static void main(String[] args) {
		// 주어진 입력값에 대해 하루, 시간, 분을 계산
		int input01;
		int input02;
		int input03;
		int days;
		int hours;
		int minutes;
		
		input01 = 1234567890;
		input02 = 98765;
		input03 = 12345;
		days = input01 / 86400;
		hours = input02 / 3600;
		minutes = input03 / 60;
		
		System.out.println("123456789초는" + days + "일 입니다");
		System.out.println("98765초는" + hours + "시간 입니다");
		System.out.println("12345초는" + minutes + "분 입니다.");
		
		
			
		
		int totsec;
		int totsec1;
		int totsec2;
		int day;
		int hour;
		int min;
		
		totsec = 1234567890;
		totsec1 = 98765;
		totsec2 = 12345;
		day = 86400;
		hour = 3600;
		min = 60;
				
		System.out.println(totsec/day +"일");
		System.out.println(totsec1/hour + "시간");
		System.out.println(totsec2/min + "분");

		
		
	}

}
